Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(package): update jest dependencies #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
thymikee merged 1 commit into master from update-jest
Jan 30, 2018
Merged

fix(package): update jest dependencies #21

thymikee merged 1 commit into master from update-jest
Jan 30, 2018

Conversation

@SimenB
Copy link
Member

@SimenB SimenB commented Jan 11, 2018
edited
Loading

(mostly to not rely on beta releases)

@SimenB SimenB requested a review from thymikee January 11, 2018 11:45
- "bar",
"baz",
+ "quoz",
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimenB do you have any ideas on why do we have extra space in the snapshots?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure. It's a diff for jest 21. I'll see if I can isolate it

Copy link
Member Author

@SimenB SimenB Jan 11, 2018
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@pedrottimark pedrottimark Jan 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that PR fixed a difference (pardon the pun :) between options:

  • expand: true output a one-space "gutter" between -/+/space and content so content aligned with labels (see can expand diff 1 below)
  • expand: false did not, but now it does, so the snapshot will not change if you toggle the option (for a diff which has fewer lines than the context)

Copy link

@pedrottimark pedrottimark Jan 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You guys are awesome

very
long
script
"
Copy link

@pedrottimark pedrottimark Jan 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thymikee This change is from jestjs/jest#4520:

  • expand: false option made sure that strings end with newline
  • expand: true did not, and in this case it even trimmed the newline at end of expected and received strings!

Copy link
Member

Thanks @SimenB @pedrottimark we'll need to mark it as breaking change then.

Copy link
Member

@SimenB ping, we have a CI now 😉 thanks for reminding me about it

Copy link
Member Author

SimenB commented Jan 29, 2018

@thymikee Do you think this is ok to merge? It changes the snapshots as mentioned, so it's a breaking change.

Should we fix #20 as well before a new release?

Breaking change: indentation of diff has changed
"babel-preset-flow": "^6.23.0",
"babel-preset-react": "^6.24.1",
"eslint": "^4.3.0",
"eslint": "~4.13.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deleted the lockfile to update all deps within semver, and without also updating eslint-config-callstack-io we are hit by the babel-eslint bug.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, good move

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can update the eslint config in the followup PR though

SimenB reacted with thumbs up emoji
Copy link
Member

I'm cool with next release to be a major, happy to see #20 as a part of it. I'll try to squeeze some time tomorrow or so to do some work (would also be cool to add more plugins by default, e.g. ReactTestComponent, not only ReactElement)

Copy link

@SimenB @thymikee For your info, when replace diff with diff-sequences in jest-diff it will also be a breaking change. If that seems like anytime soon, we might wait on it to avoid churn.

Copy link
Member

@pedrottimark that's a valid point. We don't have a release schedule, so I'm ok with waiting a bit for the new release. WDYT @SimenB?

Copy link
Member Author

SimenB commented Jan 30, 2018

It's annoying to see beta deps in my tree but there is no rush of course 🙂

Copy link
Member Author

SimenB commented Jan 30, 2018
edited
Loading

I cannot reproduce the failing node 6 test locally 🙁. Is this travis and colors again?

@thymikee thymikee merged commit a4b3d51 into master Jan 30, 2018
Copy link
Member

Looks like Travis being color blind again 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@thymikee thymikee thymikee left review comments

@pedrottimark pedrottimark pedrottimark left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /